<extend name="Common@Layout:base" />
<block name="title">
    <title>{:L('login')}</title>
</block>
<block name="style">
</block>

<block name="main">
    <include file="Common@Include:header" />

    <div class="main fly-user-main layui-clear">
        <php>$curMenu = 2;</php>
        <include file="Include:menu" />

        <div class="site-tree-mobile layui-hide">
            <i class="layui-icon"></i>
        </div>
        <div class="site-mobile-shade"></div>
        <div class="fly-panel fly-panel-user" pad20>
            <div class="layui-tab layui-tab-brief" lay-filter="user">
                <ul class="layui-tab-title" id="LAY_mine">
                    <li data-type="mine-jie" lay-id="index" class="layui-this">
                        <if condition="LANG_SET eq 'zh-cn'">
                            用户信息
                            <else/> User Information
                        </if>
                    </li>
                    <!--<li class="" lay-id="info">{:L('information')}</li>-->
                    <li lay-id="avatar">{:L('avatar')}</li>
                    <li lay-id="pass">{:L('password')}</li>
                    <!-- <li lay-id="bind">帐号绑定</li> -->

                </ul>
                <div class="layui-tab-content" style="padding: 20px 0;">

                    <div class="layui-tab-item layui-show">
                        <ul class="layui-form">
                            <li class="layui-form-li">
                                <div style="display:inline-block;text-align:center;margin-left: 30px;">
                                    <span class="avatar">
			                			<img src="{$_SESSION['loginUser']['avater']|default='/Public/res/images/avatar/default.png'}" id="nav_avatar_image">
			                		</span>
                                    <br>
                                    <!--<span style="color:#c00;">{$_SESSION['loginUser']['username']}</span>-->
                                </div>
                            </li>

                            <li class="layui-form-li">
                                <div class="layui-form layui-form-pane layui-tab-item layui-show">


                                    <div class="layui-form-item" style="margin-bottom: 0;">
                                        <span class="layui-form-label air-label" style="border: none;background:none;padding-left: 0;padding-right: 0;width: auto;">姓名：</span>
                                        <div class="layui-input-inline">
                                            <span class="layui-input " style="border:none;padding-left: 0;">{$_SESSION['loginUser']['realname']}</span>
                                        </div>
                                    </div>

                                    <div class="layui-form-item" style="margin-bottom: 0;">
                                        <span class="layui-form-label air-label" style="border: none;background:none;padding-left: 0;padding-right: 0;width: auto;">手机：</span>
                                        <div class="layui-input-inline">
                                            <span class="layui-input " style="border:none;padding-left: 0;">{$_SESSION['loginUser']['mobile']}</span>
                                        </div>
                                    </div>

                                    <div class="layui-form-item" style="margin-bottom: 0;">
                                        <span class="layui-form-label air-label" style="border: none;background:none;padding-left: 0;padding-right: 0;width: auto;">邮箱：</span>
                                        <div class="layui-input-inline">
                                            <span class="layui-input " style="border:none;padding-left: 0;">{$_SESSION['loginUser']['email']}</span>
                                        </div>
                                    </div>

                                    <div class="layui-form-item" style="margin-bottom: 0;">
                                        <span class="layui-form-label air-label" style="border: none;background:none;padding-left: 0;padding-right: 0;width: auto;">学校：</span>
                                        <div class="layui-input-inline">
                                            <span class="layui-input " style="border:none;padding-left: 0;">{$_SESSION['loginUser']['school_name']}</span>
                                        </div>
                                    </div>

                                </div>

                            </li>



                            <li class="layui-form-li" style="margin-top: 20px; line-height: 26px;">
                                <div>
                                    <php>$lastLoginLog = D('UserLog')->where('action="login" And uid = '.$_SESSION['loginUser']['uid'])->order('create_time desc')->find();</php>
                                    <if condition="LANG_SET eq 'zh-cn'">上次登录时间：
                                        <else/>Last time login : </if>
                                    {$lastLoginLog['create_time']}
                                </div>

                                <div>
                                    <if condition="LANG_SET eq 'zh-cn'">当前等级：
                                        <else/>Current Level : </if>{$_SESSION['loginUser']['level'] |default = 1}
                                </div>
                            </li>
                        </ul>

                    </div>

                    <!--<div class="layui-form layui-form-pane layui-tab-item">
						<form method="post" action="{:U('base_post')}" class="shuaxin">
							<div class="layui-form-item">
								<label for="L_username" class="layui-form-label">{:L('nickname')}</label>
								<div class="layui-input-inline">
									<input type="text" id="L_username" name="nickname" value="{$_SESSION['loginUser']['nickname']}" required lay-verify="required" autocomplete="off" value="" class="layui-input">
								</div>
								<div class="layui-inline">
									<div class="layui-input-inline" style="width:210px;">
										<input type="radio" name="sex" value="1" <if condition="$_SESSION['loginUser']['sex'] eq 1">checked</if> title="{:L('man')}">
										<input type="radio" name="sex" value="2" <if condition="$_SESSION['loginUser']['sex'] eq 2">checked</if> title="{:L('woman')}">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<button class="layui-btn" key="set-mine" lay-filter="*" lay-submit>{:L('submit')}</button>
							</div>
						</form>
					</div>-->

                    <div class="layui-form layui-form-pane layui-tab-item">
                        <div class="layui-form-item">
                            <div class="avatar-add">
                                <if condition="LANG_SET eq 'zh-cn'">
                                    <p>建议尺寸168*168，支持jpg、png、gif，最大不能超过30KB</p>
                                    <else/>
                                    <p>suggested size is 168*168 , support jpg/png/gif , max size is 30KB</p>
                                </if>
                                <div class="upload-img">
                                    <a href="javascript:;" class="layui-btn">
                                        <if condition="LANG_SET eq 'zh-cn'">上传头像
                                            <else/>upload image</if>
                                    </a>
                                </div>
                                <img src="{$_SESSION['loginUser']['avater']|default='/Public/res/images/avatar/default.png'}" id="avatar_image">
                                <span class="loading"></span>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form layui-form-pane layui-tab-item">
                        <form action="{:U('resetpwd_post')}" method="post" class="shuaxin">
                            <div class="layui-form-item">
                                <label for="L_nowpass" class="layui-form-label"><if condition="LANG_SET eq 'zh-cn'">原密码<else/>Old Pwd</if></label>
                                <div class="layui-input-inline">
                                    <input type="password" id="L_nowpass" name="oldpwd" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_pass" class="layui-form-label"><if condition="LANG_SET eq 'zh-cn'">新密码<else/>New Pwd</if></label>
                                <div class="layui-input-inline">
                                    <input type="password" id="L_pass" name="pwd" required lay-verify="required" autocomplete="off" class="layui-input"></div>
                                <div class="layui-form-mid layui-word-aux">
                                    <if condition="LANG_SET eq 'zh-cn'">密码长度建议6到16位
                                        <else/>suggest password length is 6~16 </if>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_repass" class="layui-form-label"><if condition="LANG_SET eq 'zh-cn'">重输密码<else/>Pwd Again</if></label>
                                <div class="layui-input-inline">
                                    <input type="password" id="L_repass" name="repwd" required lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" key="set-mine" lay-filter="*" lay-submit>{:L('submit')}</button>
                            </div>
                        </form>
                    </div>



                </div>
            </div>
        </div>
    </div>
    <include file="Common@Include:footer" />
</block>

<block name="script">
</block>